﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Working.Domínio
{
  public class ValidationException: WorkingException
  {
    public ValidationException() : base() { }
    public ValidationException(string message) : base(message) { }
    protected ValidationException(SerializationInfo info, StreamingContext context): base(info, context){ }
    public ValidationException(string message, Exception innerException) : base(message, innerException) { }    

    public ValidationException(string message, string propertyName) : base(message) 
    {
      this.PropertyName = propertyName;
    }
    
    public string PropertyName
    {
      get { return propertyName; }
      set { propertyName = value; }
    }
    private string propertyName = string.Empty;
  }
}
